#ifndef LINKCHECKER_H
#define LINKCHECKER_H

#include <QString>
#include <QStringList>
#include <QUrl>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>

class LinkChecker
{
public:
    LinkChecker();
    static bool check(const QUrl &linkUrl, const QUrl &currentUrl);

private:
    static bool isExLink(const QUrl &linkUrl, const QUrl &currentUrl);
    static bool isFileLink(const QUrl &linkUrl);
    static bool isAdLink(const QUrl &linkUrl);
};

static QStringList blacklist;
static bool hasBlackList = false;
void loadBlackList();

#endif // LINKCHECKER_H
